package com.sogou.qadev.service.login.client.authenticate;

public class AuthenticateProxy implements com.sogou.qadev.service.login.client.authenticate.Authenticate {
  private String _endpoint = null;
  private com.sogou.qadev.service.login.client.authenticate.Authenticate authenticate = null;
  
  public AuthenticateProxy() {
    _initAuthenticateProxy();
  }
  
  private void _initAuthenticateProxy() {
    try {
      authenticate = (new com.sogou.qadev.service.login.client.authenticate.AuthenticateServiceLocator()).getAuthenticate();
      if (authenticate != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)authenticate)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)authenticate)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (authenticate != null)
      ((javax.xml.rpc.Stub)authenticate)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sogou.qadev.service.login.client.authenticate.Authenticate getAuthenticate() {
    if (authenticate == null)
      _initAuthenticateProxy();
    return authenticate;
  }
  
  public java.lang.String authenticate2(java.lang.String username, java.lang.String password, long keyId, java.lang.String sessionId) throws java.rmi.RemoteException{
    if (authenticate == null)
      _initAuthenticateProxy();
    return authenticate.authenticate2(username, password, keyId, sessionId);
  }
  
  public java.lang.String authenticate1(java.lang.String username, long keyId, java.lang.String sessionId) throws java.rmi.RemoteException{
    if (authenticate == null)
      _initAuthenticateProxy();
    return authenticate.authenticate1(username, keyId, sessionId);
  }
  
  public int[] authenticate0(long keyId, long productID, com.sogou.qadev.service.login.bean.DataAndEventId[] dataAndEventIds) throws java.rmi.RemoteException{
    if (authenticate == null)
      _initAuthenticateProxy();
    return authenticate.authenticate0(keyId, productID, dataAndEventIds);
  }
  
  
}